package constant.milk.toilet.database;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class DbHelper extends SQLiteOpenHelper
{
	public static final String DB_NAME = "Toilet.db";  
	public static final int DB_VER = 1;  
	
	private Context context;
	
	public DbHelper(Context context)
	{
		super(context, DB_NAME, null, DB_VER);
		this.context = context;
	}

	@Override
	public void onCreate(SQLiteDatabase db)
	{
		createTable(db);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)
	{
	}
	
	public void createTable(SQLiteDatabase db)
	{
		DbCreateQuery query = new DbCreateQuery(db);
		query.createTimerListTable();
		query.createStickerTable();
	}
}
